package com.example.animaldoctor03;

import java.util.ArrayList;
import java.util.List;

public class SingleXXGXbiaoguanzzX {
	
	//这个必须要用单例模式
	private static SingleXXGXbiaoguanzzX instance = null ;
	public void SingleXXGXbiaoguanzzX (){
	
		
	}
	public static SingleXXGXbiaoguanzzX getInstance(){
		if(instance == null){
			instance = new SingleXXGXbiaoguanzzX();
		}
		return instance;
	}
	
	
private List<String> listofSingle = new ArrayList<String>();
	

	public void addinformation(String [] s){
		
		for(int i = 0 ; i < s.length ; i++){
			
			listofSingle.add(s[i]);
			
		}
		
	}
	
	public String [] getinformationoflist (){
		
		String [] informationtonext  = new String[listofSingle.size()];
		
		int jishuofSingle = -1;
		for(String h : listofSingle){
			jishuofSingle ++;
			informationtonext[jishuofSingle] = h;
			
		}
		
		return informationtonext;
		
		
	}
	
	
	
	

}
